package com.woniuxy.ticketorder.service;/*
@author houguai
@create 2021-02-27 12:20
*/


import com.woniuxy.ticketorder.entity.dto.ScDTO;
import com.woniuxy.ticketorder.entity.dto.SeatDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("ticket-cinema")
public interface CinemaService {

    @GetMapping()
    String find();

    @GetMapping("ticket-cinema/findDtoById")
    SeatDTO findDtoById(@RequestBody int id);
    @GetMapping("ticket-cinema/checkStateBySeatId")
    boolean checkStateBySeatId(@RequestBody int id);
    @GetMapping("ticket-cinema/changeStateBySeatId")
    String changeStateBySeatId(@RequestBody int id);
    @GetMapping("ticket-cinema/findscByHallId")
    ScDTO findscByHallId(@RequestBody int hall_id);

}
